package com.dom4j.demo;

import org.dom4j.Attribute;
import org.dom4j.Element;
import org.dom4j.VisitorSupport;

public class Dom4JVisitor extends VisitorSupport {
    public void visit(Element element){
        System.out.println("element: " + element.getName() + ", " + element.getText());
    }
    public void visit(Attribute attr){
        System.out.println("attribute: " + attr.getName() + ", " + attr.getValue());
    }
 }